<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS</title>

    <link rel="stylesheet" href="./css/style.css">//导入外部样式表
    <style>
        p {
            color:blue;
            font-size: 26px;
        }
        h2 {
            color:greenyellow;
        }
    </style>
</head>
<body>
    <p>这里用了CSS样式</p>
    <h1 style="color: darkred;">内联样式</h1>
    <h2 >内部样式表</h2>
    <h3>外部样式表</h3>
</body>
</html>